package cn.itcast.dao;

import cn.itcast.domain.Accounts;

import java.util.List;

public interface AccountDao {

    List<Accounts>findAll()throws Exception;

    List<Accounts> findByName(String name)throws Exception;

    int add(Accounts accounts)throws Exception;

    int updata(Accounts accounts)throws Exception;

    int delete(int id)throws Exception;
}
